#include "stm32f10x.h"
#include "led.h"
#include "Delay.h"
#include "key.h"

#include "stm32f10x_gpio.h"
#include "stm32f10x_exti.h"
#include "misc.h"
#include "OLED.h"

#include "Motor.h"
#include "Encoder.h"
 
extern int16_t Encoder_Count;



int main(void){

	
    Encoder_Init();
    
	OLED_Init();

    motor_init();
	while (1)
	{
           
		
		OLED_ShowSignedNum(1, 5, Encoder_Count, 5);	//显示Num
	}
	
	
	return 0;
}

